package day07;

import java.util.ArrayList;
import java.util.Scanner;

public class TestFour {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        ArrayList<Integer> arrayList = new ArrayList<>();
        for (int i = 0; i < a; i++) {
            int b = sc.nextInt();
            boolean flag = true;
            for (int j = 0; j < arrayList.size(); j++) {
                if (b == arrayList.get(j)) {
                    flag = false;
                    break;
                }
            }
            if (flag == true) {
                arrayList.add(b);
            }
        }
        for (int i = 0; i < arrayList.size(); i++) {
            if (i == arrayList.size() - 1) {
                System.out.print(arrayList.get(i));
            } else {
                System.out.print(arrayList.get(i) + " ");
            }
        }
    }
}